Release 10.1A: OpenEdge Data Management:
DataServer for Microsoft SQL Server
Modifying tables to create PROGRESS_RECID in support of the ROWID function
If you want to use the
ROWIDfunction with a data source, you must select an index to associate with this function. Adding a new integer column namedPROGRESS_RECIDand defining it as a single-component index is the preferred method. This method can only be applied to a table that does not currently have an identity column defined. If your table already has an identity column, you can supportROWIDby selecting an existing index. See the "Defining the ROWID" section for instructions on selecting an existing index. The following procedure illustrates how to create thePROGRESS_RECIDcolumn to supportROWID.To use the
ROWIDfunction with an MS SQL Server database, you must make changes to your data source table.
![]()
To modify a table to support the ROWID function:
- Perform these tasks:
- Create a trigger to maintain the
PROGRESS_RECIDcolumn:
- Create a non-unique index for the
PROGRESS_RECIDand a unique index for thePROGRESS_RECID_IDENT, respectively, according to the following syntax:
- Change the nonunique indexes so that they include a
PROGRESS_RECIDcolumn as the last component, as shown:
- If you have already created your schema holder, delete and recreate it.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |